package com.example.s05_shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "category")
public class Category {

    @TableId(value = "id",type = IdType.AUTO)
    int id;
    @TableField(value = "name")
    String name;
    @TableField(value = "f_id")
    int fid;// fId有问题
    @TableField(value = "level")
    int level;
}